package net.qhzw.vip.qiyu.model;


import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;

@ApiModel(value= "发送验证码参数")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SendSmsParam {

    @ApiModelProperty(value = "手机号")
    @Pattern(regexp="1[0-9]{10}",message = "请输入正确的手机号")
    private String mobile;

    /**
     * 短信模板ID
     */
    @TableField(value = "template_code")
    @ApiModelProperty(value="短信模板ID")
    private String templateCode;

    private String code;
}
